<ul>
<% @events.each do |event| %>
  <li>
  <%= link_to event.name, event_path(event)%>
  <%= link_to "(XML)", event_path(event, :format => :xml) %>
  <%= link_to "(JSON)", event_path(event, :format => :json) %>
  <%= link_to 'Edit', edit_event_path(event) %>
  <%= button_to 'Delete', event_path(event), :method => :delete %>
  <%= link_to 'Attendees', event_attendees_path(event) %>
  </li>
<% end %>
</ul>
<%= paginate @events%>
<%= link_to 'New Event', new_event_path %>
<%= link_to 'Atom_Feed', events_path(:format => :atom) %>
